package com.stadium.mapper;

import com.stadium.dto.GamePlayerDto;
import com.stadium.entity.SysUser;
import com.stadium.dto.SysUserDto;
import com.stadium.vo.SysUserVo;
import com.stadium.vo.searchVo.SearchVo;
import com.stadium.vo.searchVo.SearchVo;
import com.stadium.vo.searchVo.SysUserSearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户表
 *
 * @author wsl
 * @email
 * @date 2021-05-11 14:58:57
 */
public interface SysUserMP {
    void save(SysUser sysUser);

    void saveBatch(List<SysUser> list);

    void delete(String id);

    void deleteBatch(String[] ids);

    void update(SysUser sysUser);

    List<SysUserDto> query(SysUserSearchVo searchVo);

    SysUserDto get(String id);

    int getCount(SysUserSearchVo searchVo);

    SysUserDto getUserByLoginName(@Param("loginName") String loginName, @Param("isPlayer")Boolean isPlayer, @Param("isReferee")Boolean isReferee);

    List<GamePlayerDto> getUserByIdNo(String searchValue);

    SysUserDto getUserByIdNumber(String idNumber);

    void updateBatch(List<SysUser> playerList);
}
